package com.ctg.behavior.common.event;

import java.util.ArrayList;
import java.util.List;

import com.ctg.behavior.common.CtgResult;

import lombok.Data;
import lombok.EqualsAndHashCode;

@EqualsAndHashCode(callSuper = false)
@Data
public class CtEventGroupsResult extends CtgResult {
	
	private List<CtEventGroup> value = new ArrayList<>();
	
	@Data
	public static class CtEventGroup {
		/*
		 *  "id": 1,
            "groupName": "通用分组",
            "appName": "通用应用",
            "appId": "0",
            "mateEventList": [
		 */
		private Long id;
		private String groupName;
		private String appName;
		private String appId;
		private List<CtEventGroupMateEvent> mateEventList = new ArrayList<>();
		
	}
	
	@Data
	public static class CtEventGroupMateEvent {
		/*
		 *  {
	            "eventId": "exposureEvent",
	            "eventName": "曝光事件",
	            "productCode": "dx"
	        }
		 */
		private String eventId;
		private String eventName;
		private String productCode;
		
	}
	
}
